/**
 *  Description: Button
 *  Author: Szh
 */

@import "varibles";
//  Button  Base
.ca-btn {
    padding: 7px 20px;
    border: none;
    text-align: center;
    box-sizing: border-box;
    font-size: $caFontSize12;
    border-radius: $caRadiusRectangle;
    span {
        font-size: inherit;
    }
}

//  Button  Round
.ca-btn-round {
    border-radius: $caRadiusRound;
    border: 1px solid $caBorderColor;
    padding: 0;
    width: 30px;
    height: 30px;
    color: $caColorRed;
    background: $caBgColorWhite;
    font-size: $caFontSize12;
    &:focus,
    &:hover {
        border-color: $caColorDarkBlue;
    }
}

//  Button  Rectangle
.ca-btn-rectangle {
    border-radius: $caRadiusRectangle;
}

//  Button  default
.ca-btn-default {
    height: 35px;
    background: $caBgColorWhite;
    border: 1px solid $caBorderColor;
    color: $caColorBlack;
    i {
        color: $caColorRed;
    }
    &:focus,
    &:hover {
        i {
            color: $caColorDarkBlue;
        }
        color: $caColorDarkBlue;
        border-color: $caColorDarkBlue;
    }
}

//  Button  ok
.ca-btn-confirm {
    background: $caBgColorRed;
    border: 1px solid $caColorRed;
    color: $caColorWhite !important;
    i {
        color: $caColorWhite !important;
    }
}

//  Button  cancel
.ca-btn-cancel {
    background: $caBgColorDarkGray;
    border: 1px solid $caBgColorDarkGray;
    color: $caColorWhite !important;
    i {
        color: $caColorWhite !important;
    }
}

//  Button  text
.ca-btn-text {
    background: $caBgColorWhite;
    color: $caColorDarkBlue;
}

.ca-btn-lg {
    padding: 7px 40px;
}

.ca-table-btn {
    border-radius: 50%;
    color: #d70c18;
    font-size: 12px;
    padding: 0;
    width: 27px;
    height: 27px;
    box-shadow: 0px 2px 2px 0 rgba(104, 119, 133, 0.08);
    border: solid 1px #dbe3ea;
    margin-top: -4px;
    margin-left: 20px;
}

// 预警项目 - 创建预警  关注 & 警告 Button
.ca-btn--alarm__star {
    background-color: rgb(247, 186, 42);
    border-color: rgb(247, 186, 42);
    &:hover {
        background-color: rgb(247, 186, 42);
        border-color: rgb(247, 186, 42);
    }
    &:active {
        background-color: rgb(247, 186, 42);
        border-color: rgb(247, 186, 42);
    }
}

$btnWarningColor: rgb(215, 12, 24);
.ca-btn--alarm__warning {
    background-color: $btnWarningColor;
    border-color: $btnWarningColor;
    &:hover {
        background-color: $btnWarningColor;
        border-color: $btnWarningColor;
    }
    &:active {
        background-color: $btnWarningColor;
        border-color: $btnWarningColor;
    }
}


/* 设计稿确定按钮 */

.ca-btn__confirm {
    background-color: #389bef;
    width: 127px;
    height: 33px;
    padding: 0;
    border: 1px solid #389bef;
    cursor: pointer;
}


/* 设计稿取消按钮 */

.ca-btn__cancel {
    background-color: #666666;
    width: 127px;
    height: 33px;
    padding: 0;
    color: #fff;
    border: 1px solid #666666;
    cursor: pointer;
}

.ca-btn__cancel:hover {
    background-color: #999;
    border: 1px solid #999;
    color: #fff;
}

.ca-btn__confirm+.ca-btn__cancel {
    margin-left: 30px;
}


/**设计稿添加按钮样式**/
.ca-but__blueAdd{
    background:#389bef;
    height:34px;
    padding: 7px 20px;
    font-size: 12px;
    text-align: center;
    color:#fff;
    border-radius: 2px;
}
.ca-but__blueAdd:hover{
    opacity: 0.9;
}
// tag自动换行
.el-tag{
    white-space: normal;
    display: inline-table
}